package com.multidisplay.controller;

import com.multidisplay.bo.ResultBo;
import com.multidisplay.po.Admin;
import com.multidisplay.service.impl.AdminServiceImpl;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "管理员相关接口")
public class AdminController {
    @Autowired
    private AdminServiceImpl adminService;
    
    @GetMapping("/adminfindAll")
    public ResultBo<Admin> findAll(int page, int limit){
        return adminService.findAll(page, limit);
    }
}
